package fem2.analysis;

import fem2.Model;
import fem2.strategies.NonAdaptiveNewtonRaphsonStrategy;

/**
 * Perform 1-step static or quasi static analysis. It can be applied for both
 * linear for nonlinear system. For nonlinear, it's encouraged to use
 * NonlinearStaticAnalysis instead since the nonlinear iteration may hardly
 * converged in 1 time step.<br>
 * Note: for linear static analysis, the time at which analysis occur is by
 * default 1.0. Therefore, load & constraint must return its full value at time
 * 1.0
 * 
 * @author hbui
 * 
 */
public class LinearStaticAnalysis extends Analysis {

	/**
	 * perform linear static analysis at time 1.0
	 * 
	 * @param m
	 */
	public LinearStaticAnalysis(Model m) {
		super(m);
		setStrategy(new NonAdaptiveNewtonRaphsonStrategy(m, 1));
	}

	/**
	 * perform linear static analysis at time t0
	 * 
	 * @param m
	 * @param t0
	 */
	public LinearStaticAnalysis(Model m, double t0) {
		super(m);
		setStrategy(new NonAdaptiveNewtonRaphsonStrategy(m, 1, t0));
	}

	
}
